package com.lcfc.attend.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lcfc.attend.entity.SysUser;
import com.lcfc.attend.mapper.SysUserMapper;

@Service
public class SysUserService {

	@Autowired
	private SysUserMapper sysUserMapper;
	/**
	 * 登录
	 * @param id
	 * @return
	 */
	public List<SysUser> login(String logincode, String password) {
		List<SysUser> list = sysUserMapper.login(logincode,password);
		return list;
	}
	/**
	 * 根据usercode获取office
	 * @param usercode
	 * @return
	 */
	public List<Map<String, String>> queryOfficeByCode(String usercode) {
		List<Map<String, String>> list = sysUserMapper.queryOfficeByCode(usercode);
		return list;
	}

	
}
